/**
 * Copyright &copy; 2012-2016 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.thinkgem.jeesite.modules.config.service.weixin;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.thinkgem.jeesite.common.persistence.Page;
import com.thinkgem.jeesite.common.service.CrudService;
import com.thinkgem.jeesite.modules.config.entity.weixin.ConfigWechat;
import com.thinkgem.jeesite.modules.config.dao.weixin.ConfigWechatDao;

/**
 * 配置微信基本信息Service
 * @author Egan
 * @version 2017-02-20
 */
@Service
@Transactional(readOnly = true)
public class ConfigWechatService extends CrudService<ConfigWechatDao, ConfigWechat> {

	@Autowired
	ConfigWechatDao configWechatDao;
	public ConfigWechat get(String id) {
		return super.get(id);
	}
	
	public List<ConfigWechat> findList(ConfigWechat configWechat) {
		return super.findList(configWechat);
	}
	
	public Page<ConfigWechat> findPage(Page<ConfigWechat> page, ConfigWechat configWechat) {
		return super.findPage(page, configWechat);
	}
	
	@Transactional(readOnly = false)
	public void save(ConfigWechat configWechat) {
		super.save(configWechat);
	}
	
	@Transactional(readOnly = false)
	public void delete(ConfigWechat configWechat) {
		super.delete(configWechat);
	}
	
	public ConfigWechat getConfigWechat() {
		return configWechatDao.getConfigWechat();
	}
}